package net.oschina.app.viewpagerfragment;

import net.oschina.app.adapter.BaseVPAdapter;
import net.oschina.app.base.BaseVPFragment;
import net.oschina.app.fragment.DefaultFragment;


public class NewsVPFragment extends BaseVPFragment {

    @Override
    protected void setupTab(BaseVPAdapter adapter) {
        adapter.clear();//先清除适配器集合中的数据，再添加
        adapter.addTab("资讯3",DefaultFragment.class,getBundle("资讯3内容"));
        adapter.addTab("热点3",DefaultFragment.class,getBundle("热点3内容"));
        adapter.addTab("博客3",DefaultFragment.class,getBundle("博客3内容"));
        adapter.addTab("推荐3",DefaultFragment.class,getBundle("推荐3内容"));
    }
}
